package com.love.marriage.matchmakerInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.matchmakerInfo.entity.MatchmakerInfo;
import com.love.marriage.matchmakerInfo.vo.MatchmakerInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  红娘信息表 mapper
 * author:       alex
 * createDate:   2024-11-05 22:09:25
 * version:      1.0.0
 */
@Mapper
public interface MatchmakerInfoMapper extends BaseMapper<MatchmakerInfo> {

    Page<MatchmakerInfoVo> getPage(Page<MatchmakerInfoVo> page, @Param("matchmakerInfoVo") MatchmakerInfoVo matchmakerInfoVo);

    List<MatchmakerInfoVo> getList(@Param("matchmakerInfoVo") MatchmakerInfoVo matchmakerInfoVo);

    MatchmakerInfoVo queryMatchmakerInfo(@Param("id") Long id);

    MatchmakerInfoVo queryMatchmakerInfoByUserId(@Param("userId") Long userId);

    Integer getMaxNo();
}
